package com.baizhi.service.impl;

import com.baizhi.annotation.InsertAnnotation;
import com.baizhi.dao.MenuDao;
import com.baizhi.entity.Menu;
import com.baizhi.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuDao menuDao;

    @Override
    @InsertAnnotation
    public List selectAll() {
        List<Menu> menus=menuDao.selectAll();
        return menus;
    }
}
